// Validation functions 